package com.project.business.api;

import com.project.core.util.Translate;
import org.noear.solon.annotation.*;

@Mapping("/tool")
@Controller
public class ToolResource {

    @Inject
    private Translate translate;

    @Put
    @Mapping("/translate")
    public String translate(@Body String txt) {
        return translate.text(txt);
    }

}
